-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: discard patch layer #689
feat: discard patch layer #689
Conversation
Signed-off-by: Miaha Cybersec <[email protected]>
This reverts commit 5e3ee36. Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #689 +/- ##
==========================================
+ Coverage 34.21% 34.22% +0.01%
==========================================
Files 18 18
Lines 1584 1677 +93
==========================================
+ Hits 542 574 +32
- Misses 1011 1065 +54
- Partials 31 38 +7 ☔ View full report in Codecov by Sentry. |
@MiahaCybersec great work so far! I had a few changes requested, as well as bug with the filesystem when testing. Once that is addressed, lets also add docuemntation for this feature and specify that this is only for docker labels, and oci annotations are not currently supported until we can support oci exports in #604 |
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
@MiahaCybersec when testing this locally, I am seeing more layers when running "docker history" on a normal image. When running copa patch again on that, I am seeing the layers add up: (1) docker history ashnam/nginx:1.21.6-patched
whereas the current copa patch would show one layer
and then re-patching the (1) without scan report:
|
Signed-off-by: Miaha Cybersec <[email protected]>
@MiahaCybersec that is resolved, thanks! I did some testing looking at the layers/labels of the images and it looks good to me. There is one more thing - when comparing a double patched image (with scanner then update all) like |
Signed-off-by: Miaha Cybersec <[email protected]>
Signed-off-by: Miaha Cybersec <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Closes #389